<template>
  <div class="container">
    <div class="left">
      <div class="left-title">电台分类</div>
      <div class="left-radioList">
        <div class="left-radioItem active">全部电台</div>
        <div class="left-radioItem">主题电台</div>
        <div class="left-radioItem">风格电台</div>
        <div class="left-radioItem">语言电台</div>
        <div class="left-radioItem">人群电台</div>
        <div class="left-radioItem">地点电台</div>
        <div class="left-radioItem">心情电台</div>
      </div>
    </div>
    <div class="right">
      <div class="right-title">全部电台(127个)</div>
      <div class="right-content">
        <div class="right-item">
          <div class="item-img">
            <div class="backgroundImg"></div>
            <img class="musicImg" src="../../assets/images/2.jpg" alt="" />
          </div>
          <div class="item-con">
            <div class="item-title">KTV必点曲</div>
            <div class="item-name">陈奕迅-一丝不挂</div>
          </div>
        </div>
        <div class="right-item">
          <div class="item-img">
            <div class="backgroundImg"></div>
            <img class="musicImg" src="../../assets/images/2.jpg" alt="" />
          </div>
          <div class="item-con">
            <div class="item-title">KTV必点曲</div>
            <div class="item-name">陈奕迅-一丝不挂</div>
          </div>
        </div>
        <div class="right-item">
          <div class="item-img">
            <div class="backgroundImg"></div>
            <img class="musicImg" src="../../assets/images/2.jpg" alt="" />
          </div>
          <div class="item-con">
            <div class="item-title">KTV必点曲</div>
            <div class="item-name">陈奕迅-一丝不挂</div>
          </div>
        </div>
        <div class="right-item">
          <div class="item-img">
            <div class="backgroundImg"></div>
            <img class="musicImg" src="../../assets/images/2.jpg" alt="" />
          </div>
          <div class="item-con">
            <div class="item-title">KTV必点曲</div>
            <div class="item-name">陈奕迅-一丝不挂</div>
          </div>
        </div>
        <div class="right-item">
          <div class="item-img">
            <div class="backgroundImg"></div>
            <img class="musicImg" src="../../assets/images/2.jpg" alt="" />
          </div>
          <div class="item-con">
            <div class="item-title">KTV必点曲</div>
            <div class="item-name">陈奕迅-一丝不挂</div>
          </div>
        </div>
        <div class="right-item">
          <div class="item-img">
            <div class="backgroundImg"></div>
            <img class="musicImg" src="../../assets/images/2.jpg" alt="" />
          </div>
          <div class="item-con">
            <div class="item-title">KTV必点曲</div>
            <div class="item-name">陈奕迅-一丝不挂</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: "Radio",
};
</script>

<style scoped>
.container {
  display: flex;
  width: 1000px;
  margin: 0 auto;
  padding-top: 20px;
  color: #555;
}

/* 左边样式 */
.left {
  width: 210px;
  text-align: center;
}
.left-title {
  font-size: 16px;
  background-color: #cfcfcf;
  color: #fff;
  height: 30px;
  line-height: 30px;
  margin-bottom: 10px;
}
.left-radioItem {
  height: 36px;
  line-height: 36px;
  font-size: 14px;
}
.left-radioItem.active,
.left-radioItem:hover {
  color: #fff;
  background-color: #85d4f3;
}

/* 右边样式 */
.right {
  width: 780px;
  margin-left: 10px;
}
.right-title {
  font-size: 16px;
  background-color: #cfcfcf;
  color: #fff;
  height: 30px;
  line-height: 30px;
  margin-bottom: 10px;
  text-align: center;
}
.right-content {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid #e2e2e2;
  padding-top: 10px;
}
.right-item {
  margin: 0 0 8px 56px;
  width: 185px;
  height: 42px;
  display: flex;
}
.item-img {
  margin-right: 10px;
  position: relative;
}
.backgroundImg {
  width: 40px;
  height: 40px;
  position: absolute;
  background: url("../../assets/images/bg.png") -55px -501px no-repeat;
  z-index: -1;
}
.musicImg {
  margin: 4px;
  z-index: 10;
}
.item-title {
  color: #555;
  font-size: 14px;
}
.item-name {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}
</style>